<?php
namespace Admin\Controller;
use Think\Controller;

class IndexController extends Controller {

    public function __construct()
    {
        parent::__construct();
        //登录检测
        if (!check_login()) {
            $this->redirect('Admin/Login/index');
        }
    }

    public function index(){
        $user['username'] = session('passid');
        $user['login_time'] = session('login_time');
        $this->assign('user',$user);
        $this->display("Adminlte/index");
    }

    public function syspage(){
    	$this->display("Adminlte/adcontent");
    }

    public function addform(){
    	$this->display("Adminlte/pages/forms/addform");
    }

    public function stulist(){
    	$this->display("Adminlte/pages/tables/stulist");
    }

    public function modals(){
    	$this->display("Adminlte/pages/UI/modals");
    }

    public function add(){
    	$this->display("Adminlte/pages/forms/add");
    }

    public function editor(){
    	$this->display("Adminlte/pages/forms/editor");
    }

    public function blank(){
    	$this->display("Adminlte/pages/examples/blank");
    }

    public function err404(){
    	$this->display("Adminlte/pages/examples/404");
    }

    public function group(){
    	$Admin = A("Admin");
    	//$Admin->getallauthgroup();
    	var_dump($Admin->getallauthgroup());
    }
    
    
    
}